package com.ddxz.tools.license;


import com.ddxz.tool.core.common.DdxzStatus;

/**
 * description
 *
 * @author 朱宗刚
 * @version 1.0.0
 * @date 2020/6/8
 */
public enum LicenseError implements DdxzStatus {
    INVALID_LICENSE(9101, "license is invalid or expired"),
    LICENSE_FILE_NOT_EXISTS(9102, "license file {} do not exists");

    private String message;

    private Integer status;

    LicenseError(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getStatus() {
        return status;
    }
}
